package com.colin.aiyi.presenter.Imp_de;

import com.colin.aiyi.dao.ImpxUtils3_de.IService;
import com.colin.aiyi.dao.ImpxUtils3_de.ImpSayDetail;
import com.colin.aiyi.entity.SayDetail;
import com.colin.aiyi.eventbus.EventSayDatail;
import com.colin.aiyi.presenter.Interface_Derecated.AbsPresenter;

/**
 * Created by hl on 2017/6/1.
 */
@Deprecated
public class ImpSayDetailP extends AbsPresenter<SayDetail> {
    IService<SayDetail> iService=new ImpSayDetail();
    @Override
    public void getTById(String id) {
        super.getTById(id);
        iService.getTById(this,id);
    }

    @Override
    public void onSuccess(Object t) {
        if (t instanceof SayDetail)
        {
            sendMsgToView(new EventSayDatail((SayDetail) t));
        }
    }

    @Override
    public void onFailed(Exception e) {

    }
}
